<template>
  <div class="garbage-detail-view">
    <my-top-nav :title="'垃圾基本分类'" @clickBack="goback"></my-top-nav>
    <div style="width:100%;height:20px"></div>
    <detail :type="type"></detail>
    <div class="foot font-13 color-black-6 text-center">查询结果仅供参考,具体分类要求以当地的政府主管部门为准</div>
  </div>
</template>

<script>
import detail from "../../components/garbageDetail";
import myTopNav from "../../components/myTopNav";
export default {
  components: {
    detail,
    myTopNav
  },
  data() {
    return {
      type: ""
    };
  },
  methods:{
    /**
     * @author: 罗安兵（605762797@qq.com）
     * @description: 返回
     * @param {type} 
     * @return: 
     * @Date: 2019-12-18 09:37:18
     */
    goback(){
      this.$router.go(-1);
    }
  },
  mounted() {
    this.type = String(this.$route.query.type);
  }
};
</script>

<style lang="scss" scoped>
.garbage-detail-view {
  box-sizing: border-box;
  background-color: #f7f7f7;
  min-height: calc(100vh);
  // padding-top: 20px;
  .text-center {
    text-align: center;
    line-height: 25px;
  }
  .foot {
    width: 100%;
    height: 60px;
  }
}
</style>